﻿using System;
using System.Collections.Generic;

namespace TallyBook.BLL.Service
{
    public interface IOutlayService<TEntity> where TEntity : class, new()
    {
        TEntity Get(long id);


        List<TEntity> GetAll();

        int Insert(long accounttypeid, long outlaytypeid, long outlayid, decimal money,
            string comment, DateTime time);


        int Update(long accounttypeid, long outlaytypeid, long outlayid, decimal money,
            string comment, DateTime time);

        int Delete(long entity);
    }
}